from tkinter import *
root = Tk()
root.title("program_7_1.py")
root.geometry("500x500")
canvas = Canvas(bg = "white", width = 500, height= 500)
canvas.pack(anchor=CENTER, expand=1)
x = int(input())
y = int(input())
size = int(input())
if x + 20 * size >= 500 or y + 30 * size >= 500 or x < 0 or y < 0:
    print("Размер фигуры превышает максимальный размер")
else:
    canvas.create_rectangle(x, y, x+10*size, y+20*size, fill = "blue", outline = "blue")
    canvas.create_rectangle(x+10*size, y+10*size, x+20*size, y+30*size, fill = "blue", outline = "blue")
root.mainloop()
